home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-02-26 | 840 b | 28 lines |
- ' Press any key prompt in Interface - Steve Pullinger
- ' Waits for keyboard or LMB
-
- ' Initialise Interface resources
-
- Load "AMOSPro_Tutorial:Tutorials/Interface/Example_resource.abk"
- Resource Bank 16
- Resource Screen Open 0,640,200,0
- Flash Off : Curs Off : Cls 0 : Paper 0 : Pen 8
- Palette ,,,,$840,$C84,$FC8,$FEB
- Wait Vbl
-
-
- ' Interface Program
-
- ANY_KEY$=ANY_KEY$+"BAse 80,40;"
- ANY_KEY$=ANY_KEY$+"SetVar 1,'Press Any Key' ;"
- ANY_KEY$=ANY_KEY$+"SIze 1VATextWidth32+,TextHeight4*;"
- ANY_KEY$=ANY_KEY$+"BAse ScreenWidth SizeX-2/,ScreenHeight SizeY-2/;"
- ANY_KEY$=ANY_KEY$+"SAve 1;"
- ANY_KEY$=ANY_KEY$+"BOx 0,0,1,SizeX,SizeY;"
- ANY_KEY$=ANY_KEY$+"POutline 1VACentreX,10,1VA,0,3;"
- ANY_KEY$=ANY_KEY$+"RUn 0,%1111;" : Rem Clear buffers wait for key
- ANY_KEY$=ANY_KEY$+"EXit;"
-
- ' Call ANY_KEY$ program
-
- X=Dialog Box(ANY_KEY$)